package cc.decat.escript.ir.statement;

import cc.decat.escript.ir.Node;
import cc.decat.escript.ir.Visitor;

import java.util.Collections;
import java.util.List;

public class StatementList extends Node {
    private final List<Node> statementList;

    public StatementList() {
        this(Collections.emptyList());
    }

    public StatementList(List<Node> statementList) {
        this.statementList = statementList;
    }

    public List<Node> getStatementList() {
        return statementList;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
